#include "WayBlock.h"

WayBlock::WayBlock()
{
}

void WayBlock::crashSufferBlock(Block* b)
{
	BlockSpeed bs = BlockSpeed(_way.getWay(), b->getSpeedNorm());
	this->setSpeed(bs);
}


//---------------------------------------------------------------------

WayLeftBlock::WayLeftBlock()
{
	_way=BlockSpeed(Vector3l(-1,0), 0);
	this->setTextureName(".//image/wayleftblock.png");
}

//---------------------------------------------------------------------

WayRightBlock::WayRightBlock()
{
	_way=BlockSpeed(Vector3l(1,0), 0);
	this->setTextureName(".//image/wayrightblock.png");
}

//---------------------------------------------------------------------

WayUpBlock::WayUpBlock()
{
	_way=BlockSpeed(Vector3l(0,-1), 0);
	this->setTextureName(".//image/wayupblock.png");
}

//---------------------------------------------------------------------

WayDownBlock::WayDownBlock()
{
	_way=BlockSpeed(Vector3l(0,1), 0);
	this->setTextureName(".//image/waydownblock.png");
}
